import request, {serviceUplaod} from '@/utils/request'

export function getList (params) {
  return request.post('/account/getAccountList', params)
}

export function getInfo (params) {
  return request.post('/userManage/userDetail', params)
}

export function enter (params) {
  return request.post('/admin/wallet/transferInto', params)
}

export function out (params) {
  return request.post('/admin/wallet/transferOut', params)
}

export function upload (params) {
  return serviceUplaod.post('/upload/file', params)
}

/**
 * 导出账号
 * @param params
 * @returns {AxiosPromise<any>}
 */
export function exportAccount (params) {
  return request.get('/account/exportAccount', {
    params
  })
}

/**
 * 删除账号
 * @param params
 * @returns {AxiosPromise<any>}
 */
export function deleteAccount (params) {
  return request.post('/account/deleteAccount', params)
}

export function batchRegister (params) {
  return request.post('/account/batchRegister', params)
}

export function batchLogin (params) {
  return request.post('/account/batchLogin', params)
}
